﻿#include "Menu.h"

Menu::Menu(QObject *parent) : QObject(parent),Autosave(this)
{
    m_submenu = new SubMenu(this);
    initialize();
}

Menu::~Menu()
{

}

bool Menu::wifi() const
{
    return m_wifi;
}

void Menu::setWifi(bool newWifi)
{
    if (m_wifi == newWifi)
        return;
    m_wifi = newWifi;
    emit wifiChanged();
}

bool Menu::bluetooth() const
{
    return m_bluetooth;
}

void Menu::setBluetooth(bool newBluetooth)
{
    if (m_bluetooth == newBluetooth)
        return;
    m_bluetooth = newBluetooth;
    emit bluetoothChanged();
}



SubMenu *Menu::submenu() const
{
    return m_submenu;
}
